<extend name="Public/base"/>

<block name="body">
    <!-- 标题栏 -->
    <div class="main-title">
        <h2>会诊申请列表</h2>
    </div>
    <div class="clearfix">
        <div class="col-xs-9"></div>
        <!-- 高级搜索 -->
        <div class="search-form  col-xs-3 text-right">
            <!--<div><button onclick="syncServer()">一键同步</button></div>-->
        </div>
    </div>
    <div class="container—fluid" style="padding: 30px;max-width:800px;">
        <dl class="dl-horizontal" style="font-size: 16px;">
            <dt id="first">患者ID</dt>
            <dd id="first">{$vo.uid}</dd>
            <dt>患者ID</dt>
            <dd>{$vo.uid}</dd>
            <dt>患者姓名</dt>
            <dd>{$vo.uid|get_nickname}</dd>
            <dt>医生ID</dt>
            <dd>{$vo.doctor_id}</dd>
            <dt>医生姓名</dt>
            <dd>{$vo.doctor_id|get_nickname}</dd>
            <dt>参与医生</dt>
            <dd>{$vo.doctors}</dd>
            <dt>说明</dt>
            <dd>{$vo.description}</dd>
            <dt>订单编号</dt>
            <dd>{$vo.tradeNo}</dd>
            <dt>建立时间</dt>
            <dd>{$vo.add_time|date="Y-m-d H:i:s",###}</dd>
            <dt>备注</dt>
            <dd>{$vo.remark}</dd>
            <dt>订单状态</dt>
            <dd>
                <switch name="vo.status">
                    <case value="1">已付款</case>
                    <case value="0">待付款</case>
                </switch>
            </dd>
        </dl>
        <button onclick="history.go(-1)">返回</button>
    </div>
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

    <script type="text/javascript">
        //搜索功能
        $("#search").click(function () {
            var url = $(this).attr('url');
            var query = $('.search-form').find('input').serialize();
            query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
            query = query.replace(/^&/g, '');
            if (url.indexOf('?') > 0) {
                url += '&' + query;
            } else {
                url += '?' + query;
            }
            window.location.href = url;
        });
        //回车搜索
        $(".search-input").keyup(function (e) {
            if (e.keyCode === 13) {
                $("#search").click();
                return false;
            }
        });
        function cancelBind(id) {
            if (confirm('确定要删除吗?')) {
                location.href = '{:U("cancelBind")}?user_id=' + id;
            }
        }
        function syncServer() {
            toast.showLoading();
            toast.hideLoading();
        }
        //        $(function(){
        //        });
        //导航高亮
        highlight_subnav("{:U('Consultation/orderList')}");
    </script>
    <style>
        .big_loading {
            z-index: 9999;
            position: fixed;
            margin: 0px auto;
            bottom: 0px;
            left: 50%;
        }

        dt#first, dd#first {
            border-top: 1px dashed silver;
        }

        dl > dt, dl > dd {
            border-bottom: 1px dashed silver;
            line-height: 25px;
            margin: 0px;
            padding: 0px;;
        }

        .dl-horizontal dd {
            margin-left: 160px;
            padding-left: 10px;
            border-left: 1px dashed silver;
            border-right: 1px dashed silver;
        }

        .dl-horizontal dt {
            border-left: 1px dashed silver;
            padding-right: 10px;
        }
    </style>
</block>